Specifying Application IDs

Application IDs are alphanumeric strings passed by a SequeLink Client that identify the client application to a SequeLink service that has been configured to accept connections only from specific application IDs.

After establishing a connection with the JDBC driver, immediately invoke setApplicationId. The setApplicationId method is defined on the interface com.ddtek.jdbc.extensions.SlExtensionInterface, and uses the following method prototype:

public void setApplicationId(String s) throws SQLException 

You can set the application ID as shown in the following example:

import java.sql.*; 
import com.ddtek.jdbc.extensions.SlExtensionInterface; 
... 
Connection con = DriverManager.getConnection(...); 
String appId = "myAppID";  
if (con instanceof SlExtensionInterface) 
   { 
   SlExtensionInterface slCon = (SlExtensionInterface)con; 
   slCon.setApplicationId(myAppID); 
   } 

where myAppID is the application ID.

For more information about configuring SequeLink services to accept connections only from specific application IDs, refer to the SequeLink Administrator's Guide.